import request from '/server/http.js'

// 获取用户信息
export const getUserInfoService = (data) => {
	return request.get('/user', data)
}

// 获取用户列表
export const getUsersService = (data) => {
	return request.get('/users', data)
}

// 更新用户信息
export const updateUserService = (data) => {
	return request.put('/user', data)
}

// 删除用户
export const deleteUserService = (data) => {
	return request.delete('/user', data)
}

// 添加用户
export const addUserService = (data) => {
	return request.post('/user', data)
}